<!doctype html>


<html>
<head>
  <link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon">
  <title>asserts.js (Closure Library API Documentation - JavaScript)</title>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/doc.css">
  <link rel="stylesheet" href="static/css/sidetree.css">
  <link rel="stylesheet" href="static/css/prettify.css">

  <script>
     var _staticFilePath = "static/";
     var _typeTreeName = "goog";
     var _fileTreeName = "Source";
  </script>

  <script src="static/js/doc.js">
  </script>


  <meta charset="utf8">
</head>

<body onload="grokdoc.onLoad();">

<div id="header">
  <div class="g-section g-tpl-50-50 g-split">
    <div class="g-unit g-first">
      <a id="logo" href="index.html">Closure Library API Documentation</a>
    </div>

    <div class="g-unit">
      <div class="g-c">
        <strong>Go to class or file:</strong>
        <input type="text" id="ac">
      </div>
    </div>
  </div>
</div>





<div class="colmask rightmenu">
<div class="colleft">
    <div class="col1">
      <!-- Column 1 start -->

<div id="title">
       <span class="fn">asserts.js</span>
</div>

<div class="g-section g-tpl-75-25">
  <div class="g-unit g-first" id="description">
    <span class='nodesc'>No description.</span>
  </div>
  

        <div class="g-unit" id="useful-links">
          <div class="title">Useful links</div>
          <ol>
            <li><a href="local_closure_goog_testing_asserts.js.source.html"><span class='source-code-link'>Source Code</span></a></li>
            <li><a href="http://code.google.com/p/closure-library/source/browse/local/closure/goog/testing/asserts.js">Git</a></li>
          </ol>
        </div>
</div>

<h2 class="g-first">File Location</h2>
  <div class="g-section g-tpl-20-80">
    <div class="g-unit g-first">
      <div class="g-c-cell code-label">/goog/testing/asserts.js</div>
    </div>
  </div>
<hr/>


  <h2>Classes</h2>
 <div class="fn-constructor">
        <a href="class_goog_testing_JsUnitException.html">
          goog.testing.JsUnitException</a><br/>
        <div class="class-details"><span class='nodesc'>No description.</span></div>
 </div>
      
<br/>

  <div class="legend">
        <span class="key publickey"></span><span>Public</span>
        <span class="key protectedkey"></span><span>Protected</span>
        <span class="key privatekey"></span><span>Private</span>
  </div>









<div class="section">
  <table class="horiz-rule">


  </table>
</div>




  <h2>Global Functions</h2>





<div class="section">
  <table class="horiz-rule">


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="PRIMITIVE_EQUALITY_PREDICATES.Boolean"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">PRIMITIVE_EQUALITY_PREDICATES.</span><span class="entryName">Boolean<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line39">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="DOUBLE_EQUALITY_PREDICATE"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">DOUBLE_EQUALITY_PREDICATE<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line28">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="PRIMITIVE_EQUALITY_PREDICATES.Date"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">PRIMITIVE_EQUALITY_PREDICATES.</span><span class="entryName">Date<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line40">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="PRIMITIVE_EQUALITY_PREDICATES.Function"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">PRIMITIVE_EQUALITY_PREDICATES.</span><span class="entryName">Function<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line44">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="PRIMITIVE_EQUALITY_PREDICATES.Number"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">PRIMITIVE_EQUALITY_PREDICATES.</span><span class="entryName">Number<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line38">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.asserts.primitiveRoughEqualityPredicates_.Number"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.asserts.primitiveRoughEqualityPredicates_.</span><span class="entryName">Number<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line68">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="PRIMITIVE_EQUALITY_PREDICATES.RegExp"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">PRIMITIVE_EQUALITY_PREDICATES.</span><span class="entryName">RegExp<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line43">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="PRIMITIVE_EQUALITY_PREDICATES.String"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">PRIMITIVE_EQUALITY_PREDICATES.</span><span class="entryName">String<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line37">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="TO_STRING_EQUALITY_PREDICATE"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">TO_STRING_EQUALITY_PREDICATE<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line32">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="_assert"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">_assert<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line173">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="_displayStringForValue"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">_displayStringForValue<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line129">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="_trueTypeOf"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">_trueTypeOf<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line72">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="_validateArguments"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">_validateArguments<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line166">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="argumentsIncludeComments"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">argumentsIncludeComments<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line147">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="assert"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assert<span class="args">(<span class="arg">a</span>,&nbsp;<span class="arg">opt_b</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">a</span>
        : <span class="type">*</span>
        <div class="entryOverview">The value to assert (1 arg) or debug message (2 args).</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_b</span>
        : <span class="type">*=</span>
        <div class="entryOverview">The value to assert (2 args only).</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line231">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="assertArrayEquals"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertArrayEquals<span class="args">(<span class="arg">a</span>,&nbsp;<span class="arg">b</span>,&nbsp;<span class="arg">opt_c</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Compares two arrays ignoring negative indexes and extra properties on the
array objects. Use case: Internet Explorer adds the index, lastIndex and
input enumerable fields to the result of string.match(/regexp/g), which makes
assertObjectEquals fail.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">a</span>
        : <span class="type">*</span>
        <div class="entryOverview">The expected array (2 args) or the debug message (3 args).</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">b</span>
        : <span class="type">*</span>
        <div class="entryOverview">The actual array (2 args) or the expected array (3 args).</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_c</span>
        : <span class="type">*=</span>
        <div class="entryOverview">The actual array (3 args only).</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line799">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="assertCSSValueEquals"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertCSSValueEquals<span class="args">(<span class="arg">a</span>,&nbsp;<span class="arg">b</span>,&nbsp;<span class="arg">c</span>,&nbsp;<span class="arg">opt_d</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Compares two CSS property values to make sure that they represent the same
things. This will normalize values in the browser. For example, in Firefox,
this assertion will consider "rgb(0, 0, 255)" and "#0000ff" to be identical
values for the "color" property. This function won't normalize everything --
for example, in most browsers, "blue" will not match "#0000ff". It is
intended only to compensate for unexpected normalizations performed by
the browser that should also affect your expected value.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">a</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">Assertion message, or the CSS property name.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">b</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">CSS property name, or the expected value.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">c</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">The expected value, or the actual value.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_d</span>
        : <span class="type">string=</span>
        <div class="entryOverview">The actual value.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line982">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="assertContains"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertContains<span class="args">(<span class="arg">a</span>,&nbsp;<span class="arg">b</span>,&nbsp;<span class="arg">opt_c</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Checks if the given element is the member of the given container.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">a</span>
        : <span class="type">*</span>
        <div class="entryOverview">Failure message (3 arguments) or the contained element
    (2 arguments).</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">b</span>
        : <span class="type">*</span>
        <div class="entryOverview">The contained element (3 arguments) or the container
    (2 arguments).</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_c</span>
        : <span class="type">*=</span>
        <div class="entryOverview">The container.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line1050">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="assertElementsEquals"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertElementsEquals<span class="args">(<span class="arg">a</span>,&nbsp;<span class="arg">b</span>,&nbsp;<span class="arg">opt_c</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Compares two objects that can be accessed like an array and assert that
each element is equal.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">a</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span><span>&nbsp;|&nbsp;</span><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object">Object</a></span>
        <div class="entryOverview">Failure message (3 arguments)
    or object #1 (2 arguments).</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">b</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object">Object</a></span>
        <div class="entryOverview">Object #1 (2 arguments) or object #2 (3 arguments).</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_c</span>
        : <span class="type">Object=</span>
        <div class="entryOverview">Object #2 (3 arguments).</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line828">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="assertElementsRoughlyEqual"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertElementsRoughlyEqual<span class="args">(<span class="arg">a</span>,&nbsp;<span class="arg">b</span>,&nbsp;<span class="arg">c</span>,&nbsp;<span class="arg">opt_d</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Compares two objects that can be accessed like an array and assert that
each element is roughly equal.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">a</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span><span>&nbsp;|&nbsp;</span><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object">Object</a></span>
        <div class="entryOverview">Failure message (4 arguments)
    or object #1 (3 arguments).</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">b</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object">Object</a></span>
        <div class="entryOverview">Object #1 (4 arguments) or object #2 (3 arguments).</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">c</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object">Object</a></span><span>&nbsp;|&nbsp;</span><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">Object #2 (4 arguments) or tolerance (3 arguments).</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_d</span>
        : <span class="type">number=</span>
        <div class="entryOverview">tolerance (4 arguments).</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line856">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="assertEquals"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertEquals<span class="args">(<span class="arg">a</span>,&nbsp;<span class="arg">b</span>,&nbsp;<span class="arg">opt_c</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">a</span>
        : <span class="type">*</span>
        <div class="entryOverview">The expected value (2 args) or the debug message (3 args).</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">b</span>
        : <span class="type">*</span>
        <div class="entryOverview">The actual value (2 args) or the expected value (3 args).</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_c</span>
        : <span class="type">*=</span>
        <div class="entryOverview">The actual value (3 args only).</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line370">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="assertEvaluatesToFalse"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertEvaluatesToFalse<span class="args">(<span class="arg">a</span>,&nbsp;<span class="arg">opt_b</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">a</span>
        : <span class="type">*</span>
        <div class="entryOverview">The value to assert (1 arg) or debug message (2 args).</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_b</span>
        : <span class="type">*=</span>
        <div class="entryOverview">The value to assert (2 args only).</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line929">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="assertEvaluatesToTrue"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertEvaluatesToTrue<span class="args">(<span class="arg">a</span>,&nbsp;<span class="arg">opt_b</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">a</span>
        : <span class="type">*</span>
        <div class="entryOverview">The value to assert (1 arg) or debug message (2 args).</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_b</span>
        : <span class="type">*=</span>
        <div class="entryOverview">The value to assert (2 args only).</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line916">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="assertFalse"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertFalse<span class="args">(<span class="arg">a</span>,&nbsp;<span class="arg">opt_b</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">a</span>
        : <span class="type">*</span>
        <div class="entryOverview">The value to assert (1 arg) or debug message (2 args).</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_b</span>
        : <span class="type">*=</span>
        <div class="entryOverview">The value to assert (2 args only).</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line354">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="assertHTMLEquals"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertHTMLEquals<span class="args">(<span class="arg">a</span>,&nbsp;<span class="arg">b</span>,&nbsp;<span class="arg">opt_c</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Compares two HTML snippets.

Take extra care if attributes are involved. <code> assertHTMLEquals</code>'s
implementation isn't prepared for complex cases. For example, the following
comparisons erroneously fail:
<pre class="lang-js prettyprint">
assertHTMLEquals('<a href='x' target='y'>', '<a target='y' href='x'>');
assertHTMLEquals('<div>', '<div>');
assertHTMLEquals('</div></div></a></a></pre>

When in doubt, use <code> goog.testing.dom.assertHtmlMatches</code>.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">a</span>
        : <span class="type">*</span>
        <div class="entryOverview">The expected value (2 args) or the debug message (3 args).</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">b</span>
        : <span class="type">*</span>
        <div class="entryOverview">The actual value (2 args) or the expected value (3 args).</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_c</span>
        : <span class="type">*=</span>
        <div class="entryOverview">The actual value (3 args only).</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line956">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="assertHashEquals"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertHashEquals<span class="args">(<span class="arg">a</span>,&nbsp;<span class="arg">b</span>,&nbsp;<span class="arg">opt_c</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">a</span>
        : <span class="type">*</span>
        <div class="entryOverview">The expected value (2 args) or the debug message (3 args).</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">b</span>
        : <span class="type">*</span>
        <div class="entryOverview">The actual value (2 args) or the expected value (3 args).</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_c</span>
        : <span class="type">*=</span>
        <div class="entryOverview">The actual value (3 args only).</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line1004">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="assertNaN"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertNaN<span class="args">(<span class="arg">a</span>,&nbsp;<span class="arg">opt_b</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">a</span>
        : <span class="type">*</span>
        <div class="entryOverview">The value to assert (1 arg) or debug message (2 args).</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_b</span>
        : <span class="type">*=</span>
        <div class="entryOverview">The value to assert (2 args only).</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line470">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="assertNonEmptyString"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertNonEmptyString<span class="args">(<span class="arg">a</span>,&nbsp;<span class="arg">opt_b</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">a</span>
        : <span class="type">*</span>
        <div class="entryOverview">The value to assert (1 arg) or debug message (2 args).</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_b</span>
        : <span class="type">*=</span>
        <div class="entryOverview">The value to assert (2 args only).</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line456">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="assertNotContains"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertNotContains<span class="args">(<span class="arg">a</span>,&nbsp;<span class="arg">b</span>,&nbsp;<span class="arg">opt_c</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Checks if the given element is not the member of the given container.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">a</span>
        : <span class="type">*</span>
        <div class="entryOverview">Failure message (3 arguments) or the contained element
    (2 arguments).</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">b</span>
        : <span class="type">*</span>
        <div class="entryOverview">The contained element (3 arguments) or the container
    (2 arguments).</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_c</span>
        : <span class="type">*=</span>
        <div class="entryOverview">The container.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line1068">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="assertNotEquals"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertNotEquals<span class="args">(<span class="arg">a</span>,&nbsp;<span class="arg">b</span>,&nbsp;<span class="arg">opt_c</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">a</span>
        : <span class="type">*</span>
        <div class="entryOverview">The expected value (2 args) or the debug message (3 args).</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">b</span>
        : <span class="type">*</span>
        <div class="entryOverview">The actual value (2 args) or the expected value (3 args).</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_c</span>
        : <span class="type">*=</span>
        <div class="entryOverview">The actual value (3 args only).</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line384">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="assertNotNaN"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertNotNaN<span class="args">(<span class="arg">a</span>,&nbsp;<span class="arg">opt_b</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">a</span>
        : <span class="type">*</span>
        <div class="entryOverview">The value to assert (1 arg) or debug message (2 args).</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_b</span>
        : <span class="type">*=</span>
        <div class="entryOverview">The value to assert (2 args only).</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line481">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="assertNotNull"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertNotNull<span class="args">(<span class="arg">a</span>,&nbsp;<span class="arg">opt_b</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">a</span>
        : <span class="type">*</span>
        <div class="entryOverview">The value to assert (1 arg) or debug message (2 args).</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_b</span>
        : <span class="type">*=</span>
        <div class="entryOverview">The value to assert (2 args only).</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line409">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="assertNotNullNorUndefined"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertNotNullNorUndefined<span class="args">(<span class="arg">a</span>,&nbsp;<span class="arg">opt_b</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">a</span>
        : <span class="type">*</span>
        <div class="entryOverview">The value to assert (1 arg) or debug message (2 args).</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_b</span>
        : <span class="type">*=</span>
        <div class="entryOverview">The value to assert (2 args only).</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line445">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="assertNotThrows"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertNotThrows<span class="args">(<span class="arg">a</span>,&nbsp;<span class="arg">opt_b</span>)</span>
        </span>
        &#8658; <span class="type">*</span>
      </div>


     <div class="entryOverview">
       Asserts that the function does not throw an error.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">a</span>
        : <span>!</span>(<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span><span>&nbsp;|&nbsp;</span><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Function">Function</a></span>)
        <div class="entryOverview">The assertion comment or the function to call.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_b</span>
        : <span>!</span><span class="type">Function=</span>
        <div class="entryOverview">The function to call (if the first argument of
    <code> assertNotThrows</code> was the comment).</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type">*</span>&nbsp;
            The return value of the function.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line284">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="assertNotUndefined"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertNotUndefined<span class="args">(<span class="arg">a</span>,&nbsp;<span class="arg">opt_b</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">a</span>
        : <span class="type">*</span>
        <div class="entryOverview">The value to assert (1 arg) or debug message (2 args).</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_b</span>
        : <span class="type">*=</span>
        <div class="entryOverview">The value to assert (2 args only).</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line433">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="assertNull"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertNull<span class="args">(<span class="arg">a</span>,&nbsp;<span class="arg">opt_b</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">a</span>
        : <span class="type">*</span>
        <div class="entryOverview">The value to assert (1 arg) or debug message (2 args).</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_b</span>
        : <span class="type">*=</span>
        <div class="entryOverview">The value to assert (2 args only).</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line397">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="assertObjectEquals"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertObjectEquals<span class="args">(<span class="arg">a</span>,&nbsp;<span class="arg">b</span>,&nbsp;<span class="arg">opt_c</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Notes:
Object equality has some nasty browser quirks, and this implementation is
not 100% correct. For example,

<code>
var a = [0, 1, 2];
var b = [0, 1, 2];
delete a[1];
b[1] = undefined;
assertObjectEquals(a, b); // should fail, but currently passes
</code>

See asserts_test.html for more interesting edge cases.

The first comparison object provided is the expected value, the second is
the actual.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">a</span>
        : <span class="type">*</span>
        <div class="entryOverview">Assertion message or comparison object.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">b</span>
        : <span class="type">*</span>
        <div class="entryOverview">Comparison object.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_c</span>
        : <span class="type">*=</span>
        <div class="entryOverview">Comparison object, if an assertion message was provided.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line726">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="assertObjectNotEquals"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertObjectNotEquals<span class="args">(<span class="arg">a</span>,&nbsp;<span class="arg">b</span>,&nbsp;<span class="arg">opt_c</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Compares two arbitrary objects for non-equalness.

All the same caveats as for assertObjectEquals apply here:
Undefined values may be confused for missing values, or vice versa.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">a</span>
        : <span class="type">*</span>
        <div class="entryOverview">Assertion message or comparison object.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">b</span>
        : <span class="type">*</span>
        <div class="entryOverview">Comparison object.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_c</span>
        : <span class="type">*=</span>
        <div class="entryOverview">Comparison object, if an assertion message was provided.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line779">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="assertObjectRoughlyEquals"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertObjectRoughlyEquals<span class="args">(<span class="arg">a</span>,&nbsp;<span class="arg">b</span>,&nbsp;<span class="arg">c</span>,&nbsp;<span class="arg">opt_d</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Similar to assertObjectEquals above, but accepts a tolerance margin.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">a</span>
        : <span class="type">*</span>
        <div class="entryOverview">Assertion message or comparison object.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">b</span>
        : <span class="type">*</span>
        <div class="entryOverview">Comparison object.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">c</span>
        : <span class="type">*</span>
        <div class="entryOverview">Comparison object or tolerance.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_d</span>
        : <span class="type">*=</span>
        <div class="entryOverview">Tolerance, if an assertion message was provided.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line745">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="assertRegExp"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertRegExp<span class="args">(<span class="arg">a</span>,&nbsp;<span class="arg">b</span>,&nbsp;<span class="arg">opt_c</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Checks if the given string matches the given regular expression.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">a</span>
        : <span class="type">*</span>
        <div class="entryOverview">Failure message (3 arguments) or the expected regular
    expression as a string or RegExp (2 arguments).</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">b</span>
        : <span class="type">*</span>
        <div class="entryOverview">The regular expression (3 arguments) or the string to test
    (2 arguments).</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_c</span>
        : <span class="type">*=</span>
        <div class="entryOverview">The string to test.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line1086">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="assertRoughlyEquals"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertRoughlyEquals<span class="args">(<span class="arg">a</span>,&nbsp;<span class="arg">b</span>,&nbsp;<span class="arg">c</span>,&nbsp;<span class="arg">opt_d</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">a</span>
        : <span class="type">*</span>
        <div class="entryOverview">The expected value (3 args) or the debug message (4 args).</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">b</span>
        : <span class="type">*</span>
        <div class="entryOverview">The actual value (3 args) or the expected value (4 args).</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">c</span>
        : <span class="type">*</span>
        <div class="entryOverview">The tolerance (3 args) or the actual value (4 args).</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_d</span>
        : <span class="type">*=</span>
        <div class="entryOverview">The tolerance (4 args only).</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line1029">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="assertSameElements"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertSameElements<span class="args">(<span class="arg">a</span>,&nbsp;<span class="arg">b</span>,&nbsp;<span class="arg">opt_c</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Compares two array-like objects without taking their order into account.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">a</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span><span>&nbsp;|&nbsp;</span><span class="type">goog.testing.asserts.ArrayLike</span>
        <div class="entryOverview">Assertion message or the
    expected elements.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">b</span>
        : <span class="type">goog.testing.asserts.ArrayLike</span>
        <div class="entryOverview">Expected elements or the actual
    elements.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_c</span>
        : <span class="type">goog.testing.asserts.ArrayLike=</span>
        <div class="entryOverview">Actual elements.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line883">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="assertThrows"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertThrows<span class="args">(<span class="arg">a</span>,&nbsp;<span class="arg">opt_b</span>)</span>
        </span>
        &#8658; <span class="type">*</span>
      </div>


     <div class="entryOverview">
       Asserts that the function throws an error.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">a</span>
        : <span>!</span>(<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span><span>&nbsp;|&nbsp;</span><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Function">Function</a></span>)
        <div class="entryOverview">The assertion comment or the function to call.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_b</span>
        : <span>!</span><span class="type">Function=</span>
        <div class="entryOverview">The function to call (if the first argument of
    <code> assertThrows</code> was the comment).</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type">*</span>&nbsp;
            The error thrown by the function.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line251">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="assertThrowsJsUnitException"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertThrowsJsUnitException<span class="args">(<span class="arg">callback</span>,&nbsp;<span class="arg">opt_expectedMessage</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Asserts that the given callback function results in a JsUnitException when
called, and that the resulting failure message matches the given expected
message.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">callback</span>
        : <span class="type">function() : void</span>
        <div class="entryOverview">Function to be run expected to result
    in a JsUnitException (usually contains a call to an assert).</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_expectedMessage</span>
        : <span class="type">string=</span>
        <div class="entryOverview">Failure message expected to be given
    with the exception.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line314">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="assertTrue"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertTrue<span class="args">(<span class="arg">a</span>,&nbsp;<span class="arg">opt_b</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">a</span>
        : <span class="type">*</span>
        <div class="entryOverview">The value to assert (1 arg) or debug message (2 args).</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_b</span>
        : <span class="type">*=</span>
        <div class="entryOverview">The value to assert (2 args only).</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line339">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="assertUndefined"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertUndefined<span class="args">(<span class="arg">a</span>,&nbsp;<span class="arg">opt_b</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">a</span>
        : <span class="type">*</span>
        <div class="entryOverview">The value to assert (1 arg) or debug message (2 args).</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_b</span>
        : <span class="type">*=</span>
        <div class="entryOverview">The value to assert (2 args only).</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line421">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.asserts.callWithoutLogging"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.asserts.</span><span class="entryName">callWithoutLogging<span class="args">(<span class="arg">fn</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Runs a function in an environment where test failures are not logged. This is
useful for testing test code, where failures can be a normal part of a test.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">fn</span>
        : <span class="type">function() : void</span>
        <div class="entryOverview">Function to run without logging failures.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line493">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="commentArg"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">commentArg<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line151">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.testing.asserts.contains_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.asserts.</span><span class="entryName">contains_<span class="args">(<span class="arg">container</span>,&nbsp;<span class="arg">contained</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Tells whether the array contains the given element.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">container</span>
        : <span class="type">goog.testing.asserts.ArrayLike</span>
        <div class="entryOverview">The array to
    find the element in.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">contained</span>
        : <span class="type">*</span>
        <div class="entryOverview">Element to find.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            Whether the element is in the array.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line1145">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="assertObjectRoughlyEquals&equalityPredicate"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertObjectRoughlyEquals&equalityPredicate<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line751">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="fail"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">fail<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line143">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.asserts.findDifferences"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.asserts.</span><span class="entryName">findDifferences<span class="args">(<span class="arg">expected</span>,&nbsp;<span class="arg">actual</span>,&nbsp;<span class="arg">opt_equalityPredicate</span>)</span>
        </span>
        &#8658; <span>?</span><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
      </div>


     <div class="entryOverview">
       Determines if two items of any type match, and formulates an error message
if not.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">expected</span>
        : <span class="type">*</span>
        <div class="entryOverview">Expected argument to match.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">actual</span>
        : <span class="type">*</span>
        <div class="entryOverview">Argument as a result of performing the test.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_equalityPredicate</span>
        : (<span class="type">function(string, *, *): ?string)=</span>
        <div class="entryOverview">An optional
    function that can be used to check equality of variables. It accepts 3
    arguments: type-of-variables, var1, var2 (in that order) and returns an
    error message if the variables are not equal,
    goog.testing.asserts.EQUALITY_PREDICATE_VARS_ARE_EQUAL if the variables
    are equal, or
    goog.testing.asserts.EQUALITY_PREDICATE_CANT_PROCESS if the predicate
    couldn't check the input variables. The function will be called only if
    the types of var1 and var2 are identical.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span>?</span><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&nbsp;
            Null on success, error message on failure.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line538">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.testing.asserts.getDefaultErrorMsg_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.asserts.</span><span class="entryName">getDefaultErrorMsg_<span class="args">(<span class="arg">expected</span>,&nbsp;<span class="arg">actual</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">expected</span>
        : <span class="type">*</span>
        <div class="entryOverview">The expected value.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">actual</span>
        : <span class="type">*</span>
        <div class="entryOverview">The actual value.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&nbsp;
            A failure message of the values don't match.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line186">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.testing.asserts.indexOf_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.asserts.</span><span class="entryName">indexOf_<span class="args">(<span class="arg">container</span>,&nbsp;<span class="arg">contained</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
      </div>


     <div class="entryOverview">
       Finds the position of the first occurrence of an element in a container.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">container</span>
        : <span class="type">goog.testing.asserts.ArrayLike</span>
        <div class="entryOverview">The array to find the element in.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">contained</span>
        : <span class="type">*</span>
        <div class="entryOverview">Element to find.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>&nbsp;
            Index of the first occurrence or -1 if not found.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line1122">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.asserts.findDifferences&innerAssert"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.asserts.</span><span class="entryName">findDifferences&innerAssert<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line547">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.testing.asserts.findDifferences&innerAssert_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.asserts.</span><span class="entryName">findDifferences&innerAssert_<span class="args">(<span class="arg">var1</span>,&nbsp;<span class="arg">var2</span>,&nbsp;<span class="arg">path</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">var1</span>
        : <span class="type">*</span>
        <div class="entryOverview">An item in the expected object.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">var2</span>
        : <span class="type">*</span>
        <div class="entryOverview">The corresponding item in the actual object.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">path</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">Their path in the objects.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line594">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.testing.asserts.isArrayIndexProp_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.asserts.</span><span class="entryName">isArrayIndexProp_<span class="args">(<span class="arg">prop</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Helper function for assertObjectEquals.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">prop</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">A property name.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            If the property name is an array index.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line1197">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="nonCommentArg"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">nonCommentArg<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line159">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.testing.asserts.numberRoughEqualityPredicate_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.asserts.</span><span class="entryName">numberRoughEqualityPredicate_<span class="args">(<span class="arg">var1</span>,&nbsp;<span class="arg">var2</span>,&nbsp;<span class="arg">tolerance</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Compares equality of two numbers, allowing them to differ up to a given
tolerance.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">var1</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">A number.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">var2</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">A number.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">tolerance</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">the maximum allowed difference.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            Whether the two variables are sufficiently close.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line57">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.asserts.getDefaultErrorMsg_&printString"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.asserts.</span><span class="entryName">getDefaultErrorMsg_&printString<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line210">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.asserts.raiseException"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.asserts.</span><span class="entryName">raiseException<span class="args">(<span class="arg">comment</span>,&nbsp;<span class="arg">opt_message</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Raises a JsUnit exception with the given comment.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">comment</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">A summary for the exception.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_message</span>
        : <span class="type">string=</span>
        <div class="entryOverview">A description of the exception.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line1181">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="standardizeCSSValue"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">standardizeCSSValue<span class="args">(<span class="arg">propertyName</span>,&nbsp;<span class="arg">value</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
      </div>


     <div class="entryOverview">
       Standardizes a CSS value for a given property by applying it to an element
and then reading it back.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">propertyName</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">CSS property name.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">value</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">CSS value.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&nbsp;
            Normalized CSS value.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line1169">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="standardizeHTML"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">standardizeHTML<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line1153">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.testing.asserts.toArray_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.asserts.</span><span class="entryName">toArray_<span class="args">(<span class="arg">arrayLike</span>)</span>
        </span>
        &#8658; <span>!</span><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>
      </div>


     <div class="entryOverview">
       Converts an array like object to array or clones it if it's already array.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">arrayLike</span>
        : <span class="type">goog.testing.asserts.ArrayLike</span>
        <div class="entryOverview">The collection.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span>!</span><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>&nbsp;
            Copy of the collection as array.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line1105">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="assertObjectRoughlyEquals&equalityPredicate&typedPredicate"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertObjectRoughlyEquals&equalityPredicate&typedPredicate<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line752">code &raquo;</a>
  </td>
     </tr>


  </table>
</div>






  <h2>Global Variables</h2>





<div class="section">
  <table class="horiz-rule">


     <tr class="even entry public">
       <td class="access"></td>





  <a name="JSUNIT_UNDEFINED_VALUE"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">JSUNIT_UNDEFINED_VALUE</span>
        : 
     </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line31">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>





  <a name="PRIMITIVE_EQUALITY_PREDICATES"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">PRIMITIVE_EQUALITY_PREDICATES</span>
        : 
     </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asserts.js.source.html#line36">Code &raquo;</a>
  </td>
     </tr>


  </table>
</div>
      <!-- Column 1 end -->
    </div>

        <div class="col2">
          <!-- Column 2 start -->
          <div class="col2-c">
            <h2 id="ref-head">Directory testing</h2>
            <div id="localView"></div>
          </div>

          <div class="col2-c">
            <h2 id="ref-head">File Reference</h2>
            <div id="sideFileIndex" rootPath="" current="/goog/testing/asserts.js"></div>
          </div>
          <!-- Column 2 end -->
        </div>
</div>
</div>

</body>
</html>
